package com.sc.model;

import java.util.UUID;

import org.beetl.sql.core.annotatoin.Table;

import com.sc.model.base.BaseModel;

/**
 * 订单
 * 
 * @author chenhao
 *
 */
@Table(name = "order")
public class Order extends BaseModel {

	private static final long serialVersionUID = 1L;

	public String serialNumber;// 交易流水号
	public int status;// 订单状态: 1待收货,2:已收货,3:退货中,4:已退货
	public String userId;

	public Order(String userId) {
		super();
		this.userId = userId;
		this.status = 1;
		this.serialNumber = UUID.randomUUID().toString();
	}

	public Order(String id, int status) {
		super();
		this.id = id;
		this.status = status;
	}

	public Order() {
		super();
		this.status = 1;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}
